package com.bestseller.enums;

public enum TrafficLight {
	RED(40){
		public TrafficLight nextIndicate(){
			return GREEN;
		}
	},YELLEO(10){
		public TrafficLight nextIndicate(){
			return RED;
		}
	},GREEN(45){
		public TrafficLight nextIndicate(){
			return YELLEO;
		}
	};
	public abstract TrafficLight nextIndicate();
	private int time;
	private TrafficLight(int time){
		this.time=time;
	}
	public int getTime() {
		return time;
	}
	
}
